package org.example.redpacket.service;

import org.example.redpacket.model.dto.RedPacketDetailPageQryDTO;
import org.example.redpacket.model.vo.RedPacketDetailPageRspVO;
import org.example.redpacket.model.dto.UserRedPacketDetailDTO;
import org.example.redpacket.model.entity.UserRedPacketDetailEntity;

import java.util.List;

/**
 * 客户领取红包明细功能的 接口定义
 *
 * @author: hero生仔
 */
public interface UserRedPacketDetailService {
    /**
     * 插入客户领取红包明细数据
     *
     * @param userRedPacketDetailEntity userRedPacketDetailEntity
     * @return 添加的条数
     */
    Integer insertUserRedPacketDetail(UserRedPacketDetailEntity userRedPacketDetailEntity);

    /**
     * 批量更新红包使用明细
     *
     * @param userRedPacketDetailDTO userRedPacketDetailDTO
     * @return 是否更新成功
     */
    String batchUpdateRedPacketDetail(UserRedPacketDetailDTO userRedPacketDetailDTO);

    /**
     * 分页续传查询用户红包明细
     *
     * @param redPacketDetailPageQryDTO redPacketDetailPageQryDTO
     * @return 用户红包明细
     */
    List<RedPacketDetailPageRspVO> qryRedPacketDetailByPage(RedPacketDetailPageQryDTO redPacketDetailPageQryDTO);
}
